const express = require('express')
const app = express()
app.use((req, res,next) => {
  console.log('common server')
  res.end('common server')
  next()
})
//  路径和方法中间件
app.get('/home', (req, res, next) => {
  console.log('server home')
})
app.post('/login', (req, res, next) => {
  console.log('login server')
})
app.listen(8006, () => {
  console.log('server start express')
})